package com.atstudent.gmall.common.feign.util;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 薛有朋
 * @CreatDate 2025/4/15 20:04
 **/
public class HttpServletRequestThreadLocal {
    private static final ThreadLocal<HttpServletRequest> threadLocal = new ThreadLocal<>();

    public static void set(HttpServletRequest httpServletRequest){
        threadLocal.set(httpServletRequest);
    }

    public static HttpServletRequest get(){
        return threadLocal.get();
    }

}
